// pages/login/index.js
Page({
    data:{
      userInfo:{},
      // 商品收藏
      shangping:0
    },
    onShow:function(){
      var userInfo = wx.getStorageSync("userInfo");
      var shangping = wx.getStorageSync("collect").length;
      console.log(shangping)
      this.setData({
        userInfo,
        shangping
      })
    }
})